// 引入一级路由
import Blank from '../views/blank.vue'

// 引入二级路由

import First from '../views/second/first.vue'
import House from '../views/second/house.vue'
import Newtext from '../views/second/newtext.vue'
import Own from '../views/second/own.vue'

import Login from '../views/second/login.vue'
import Register from '../views/second/register.vue'

// 创建路由规则
const routes = [
  {
    name: 'blank',
    path: '/',
    component: Blank,
    redirect: 'first',
    children: [
      {
        path: 'first',
        component: First
      },
      {
        path: 'house',
        component: House
      },
      {
        path: 'newtext',
        component: Newtext
      },
      {
        path: 'own',
        component: Own
      },
      {
        path: 'login',
        component: Login
      },
      {
        path: 'register',
        component: Register
      }
    ]
  }
]

export default routes
